<?php
  
  
    require "../framework.php";  
    
    $fieldList = db::getTableFieldArray($_REQUEST['table']);
    
    $html = "";
    
    for ($n=0; $n < sizeof($fieldList); $n++) {
        
        $html = $html.'<option value="'.$fieldList[$n].'">'.$fieldList[$n].'</option>';
        
    }
    
    
    echo $html;
    
  
?>
